package com.atstudy.thread;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2022/12/22 14:51
 * @copyright: 博为峰
 */
public class Thread02 extends Thread {

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            Thread thread = Thread.currentThread();
            String name = thread.getName();
            System.out.println(name + "-" + i);
        }
    }
}
